.class Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;
.super Lcom/glympse/android/glympse/Glympse$GlympseView;
.source "ViewHelp.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/ViewHelp;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MyGlympseView"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/glympse/android/glympse/ViewHelp$MyGlympseView$MyWebViewClient;
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/ViewHelp;


# direct methods
.method constructor <init>(Lcom/glympse/android/glympse/ViewHelp;)V
    .locals 0
    .parameter

    .prologue
    .line 38
    iput-object p1, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    invoke-direct {p0}, Lcom/glympse/android/glympse/Glympse$GlympseView;-><init>()V

    return-void
.end method


# virtual methods
.method public CreateView()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    const/4 v5, -0x1

    .line 43
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    invoke-virtual {v2}, Lcom/glympse/android/glympse/ViewHelp;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 46
    .local v0, oContext:Landroid/content/Context;
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Lcom/glympse/android/glympse/ViewHelp;->setOrientation(I)V

    .line 47
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    const/16 v3, 0xa

    const/16 v4, 0x29

    invoke-static {v6, v3, v4}, Landroid/graphics/Color;->rgb(III)I

    move-result v3

    invoke-virtual {v2, v3}, Lcom/glympse/android/glympse/ViewHelp;->setBackgroundColor(I)V

    .line 50
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    iget-object v2, v2, Lcom/glympse/android/glympse/ViewHelp;->m_oWebView:Landroid/webkit/WebView;

    if-nez v2, :cond_0

    .line 52
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "http://www.glympse.com/help/?bt=Android&bn=130&os=android&osver="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 56
    invoke-static {}, Lcom/glympse/platform/Platform;->GetOsVer()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    .line 52
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 58
    .local v1, strUrl:Ljava/lang/String;
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    new-instance v3, Landroid/webkit/WebView;

    invoke-direct {v3, v0}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    iput-object v3, v2, Lcom/glympse/android/glympse/ViewHelp;->m_oWebView:Landroid/webkit/WebView;

    .line 59
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    iget-object v2, v2, Lcom/glympse/android/glympse/ViewHelp;->m_oWebView:Landroid/webkit/WebView;

    new-instance v3, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView$MyWebViewClient;

    invoke-direct {v3, p0}, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView$MyWebViewClient;-><init>(Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;)V

    invoke-virtual {v2, v3}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 60
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    iget-object v2, v2, Lcom/glympse/android/glympse/ViewHelp;->m_oWebView:Landroid/webkit/WebView;

    invoke-virtual {v2, v6}, Landroid/webkit/WebView;->setScrollBarStyle(I)V

    .line 61
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    iget-object v2, v2, Lcom/glympse/android/glympse/ViewHelp;->m_oWebView:Landroid/webkit/WebView;

    invoke-virtual {v2, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 62
    iget-object v2, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    iget-object v3, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    iget-object v3, v3, Lcom/glympse/android/glympse/ViewHelp;->m_oWebView:Landroid/webkit/WebView;

    new-instance v4, Landroid/widget/LinearLayout$LayoutParams;

    .line 64
    invoke-direct {v4, v5, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 62
    invoke-virtual {v2, v3, v4}, Lcom/glympse/android/glympse/ViewHelp;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 66
    .end local v1           #strUrl:Ljava/lang/String;
    :cond_0
    return-void
.end method

.method public DestroyView()V
    .locals 2

    .prologue
    .line 71
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/ViewHelp;->removeAllViews()V

    .line 72
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    const/4 v1, 0x0

    iput-object v1, v0, Lcom/glympse/android/glympse/ViewHelp;->m_oWebView:Landroid/webkit/WebView;

    .line 73
    return-void
.end method

.method public OnKeyDownForward(ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "nKeyCode"
    .parameter "oEvent"

    .prologue
    .line 78
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    iget-object v0, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    iget-object v0, v0, Lcom/glympse/android/glympse/ViewHelp;->m_oWebView:Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    iget-object v0, v0, Lcom/glympse/android/glympse/ViewHelp;->m_oWebView:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->canGoBack()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 80
    iget-object v0, p0, Lcom/glympse/android/glympse/ViewHelp$MyGlympseView;->this$0:Lcom/glympse/android/glympse/ViewHelp;

    iget-object v0, v0, Lcom/glympse/android/glympse/ViewHelp;->m_oWebView:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->goBack()V

    .line 81
    const/4 v0, 0x1

    .line 83
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Lcom/glympse/android/glympse/Glympse$GlympseView;->OnKeyDownForward(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method
